package com.jk.vehicle.mini.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.jk.vehicle.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
* 广告浏览记录实体类
*
* @author jiajiang
* @since 2021-05-07
*/
@Table(name = "biz_ad_preview_record")
@Data
@ApiModel(value="AdPreviewRecordEntity", description="广告浏览记录实体类")
public class AdPreviewRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 关联广告表id
     */
    @ApiModelProperty(value = "关联广告表id", required = true, position = 1)
    @Column(name = "ad_id")
    private Long adId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", position = 2)
    @Column(name = "user_id")
    private Long userId;

    /**
    * 操作类型（0：浏览，1：点击）
    */
    @ApiModelProperty(value = "操作类型（0：浏览，1：点击）", required = true, position = 3)
    @Column(name = "operation_type")
    private Integer operationType;

    /**
     * 预览量或点击量
     */
    @ApiModelProperty(value = "预览量或点击量", hidden = true, position = 4)
    @Column(name = "pv_num")
    private Long pvNum;

    /**
     * 厂家id
     */
    @ApiModelProperty(value = "厂家id", position = 5)
    @TableField(exist = false)
    private Long corpId;

    /**
    * 创建人ID
    */
    @ApiModelProperty(value = "创建人ID", hidden = true, position = 6)
    @Column(name = "create_user")
    private Long createUser;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间", hidden = true, position = 7)
    @Column(name = "create_date")
    private Date createDate;

    /**
    * 更新人id
    */
    @ApiModelProperty(value = "更新人id", hidden = true, position = 8)
    @Column(name = "update_user")
    private Long updateUser;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间", hidden = true, position = 9)
    @Column(name = "update_date")
    private Date updateDate;

}
